
export default {
  name: "文本",
  component: "DText",
  icon: "cmp-input",
  cmpType: "component",
  attrs: {
    value: "text",
  },
  attrWidgets: [
    {
      name: "文本内容",
      key: "value",
      component: "AInput",
      pos: "base",
      labelWidthAuto: false,
      visible: true,
      hidden: false,
      attrs: {
        placeholder: "请输入文字",
        type: "textarea"
      },
    },
  ],
  events: [],
  style: {
    width: 120,
    height: 24,
    left: 0,
    top: 0,
    borderWidth: 0,
    borderColor: "#ff0000",
    borderStyle: "solid",
    borderPos: [1, 1, 1, 1],
    borderRadius: 0,
    borderRadiusPos: [0, 0, 0, 0],
    backgroundColorType: "", //color linear image
    backgroundColorLinear: ["", "#ff0000", "#00ff00"],
    backgroundColorValue: "",
    padding: [0, 0, 0, 0],
    text: {
      fontWeight: "normal",
      fontSize: 14,
      color: "#333333",
      borderShadow: [2, 2, 2, "#ff0000"],
      isBorderShadow: false,
      textAlign: "left",
      lines: 0,
      lineHeight: 20,
      letterSpacing: 0,
    }
  },
  class: [],
};
